import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EEquip
    
    export  class EEquip
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): EEquip
        {
            return new EEquip(arg1);
        }

        public static __read(arg1: SerializeStream): EEquip
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 23) 
            {
                throw new MarshalException();
            }
            return EEquip.convert(loc1);
        }

        public static /* const */_EEquipWeapon: int=0;

        public static /* const */_EEquipHelmet: int=1;

        public static /* const */_EEquipShoulder: int=2;

        public static /* const */_EEquipClothes: int=3;

        public static /* const */_EEquipWristlet: int=4;

        public static /* const */_EEquipGloves: int=5;

        public static /* const */_EEquipBelt: int=6;

        public static /* const */_EEquipPants: int=7;

        public static /* const */_EEquipShoes: int=8;

        public static /* const */_EEquipRing: int=9;

        public static /* const */_EEquipJewelry: int=10;

        public static /* const */_EEquipFashion: int=11;

        public static /* const */_EEquipHeartLock: int=12;

        public static /* const */_EEquipWing: int=13;

        public static /* const */_EEquipFashionWeapon: int=14;

        public static /* const */_EEquipHarmMedalDeeper: int=15;

        public static /* const */_EEquipHarmMedalLower: int=16;

        public static /* const */_EEquipFootPrint: int=17;

        public static /* const */_EEquipBubble: int=18;

        public static /* const */_EEquipSurround: int=19;

        public static /* const */_EEquipModel: int=20;

        public static /* const */_EEquipWaistBelt: int=21;

        public static /* const */_EEquipElf: int=22;

        public /* var */__value: int;
    }
